package com.example.javafx.vbox;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

/**
 * VBOX间距
 */
public class Main_2 extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {

        primaryStage.setTitle("HTML");
        primaryStage.setWidth(500);
        primaryStage.setHeight(500);
        Scene scene = new Scene(new Group());

        VBox vBox = new VBox(8);//spacing = 8;
        vBox.getChildren().addAll(new Button("cut"),new Button("copy"),new Button("paste"));

        scene.setRoot(vBox);
        primaryStage.setScene(scene);

        primaryStage.show();

    }

    public static void main(String[] args) {
            launch(args);
    }
}
